import { useSelector, useDispatch } from "react-redux";
import numStatus from "@/store/NumStatus";
import React from "react";

export default function Page1() {
  const dispatch = useDispatch();
  const { num } = useSelector((state) => ({
    num: state.handleNum.num,
  }));
  const changeNum2 = () => {
    dispatch(numStatus.asyncActions.asyncAdd1);
  };
  return (
    <>
      <h1>asd</h1>
      <button onClick={changeNum2}>++</button>
      <div>{num}</div>
    </>
  );
}
